package main

import (
	"fmt"
	"unsafe"
	office_parse "gitee.com/guoliben/office-parse"
)

func main() {
	fmt.Println("------------")
	fmt.Println(office_parse.ParseOleDocFile("demo.doc"))
	fmt.Println(office_parse.ParseOleXlsFile("demo.xls"))
	fmt.Println(office_parse.ParseOlePptFile("demo.ppt"))
	fmt.Println("------------")
	text, _ := office_parse.ParseOleDocFile("demo.doc")
	fmt.Println(*(*string)(unsafe.Pointer(&text)))
	text, _ = office_parse.ParseOleXlsFile("demo.xls")
	fmt.Println(*(*string)(unsafe.Pointer(&text)))
	text, _ = office_parse.ParseOlePptFile("demo.ppt")
	fmt.Println(*(*string)(unsafe.Pointer(&text)))
	fmt.Println("------------")
}
